﻿using System.Collections.Generic;
using PgBirdie.Core.Model.Database.AccessControl;

namespace PgBirdie.Core.Model.Database.Structure
{
    public class PgSchema : PgDbObject, IPgOwner, IPgPrivileges
    {
        public PgDatabase Database { get; set; }
        public IDictionary<string, PgTable> Tables { get; set; }
        public IDictionary<string, PgSequence> Sequences { get; set; }

        public PgOwner Owner { get; set; }
        public IDictionary<string, PgPrivilege> Privileges { get; set; }

        public PgSchema()
        {            
            Tables = new Dictionary<string, PgTable>();
            Sequences = new Dictionary<string, PgSequence>();
            Privileges = new Dictionary<string, PgPrivilege>();
        }
    }
}